import LayOut from '@/pages/layOut'
import Home from '@/pages/home'
import NotFound from '../pages/notFound';
import AdFormats from '@/pages/productCenter/adFormats'
import GroMore from '@/pages/productCenter/gromore'
import GrowthAdviser from '@/pages/productCenter/growthAdviser'
import IntelligentLayering from '@/pages/productCenter/intelligentLayering'
import Solution from '@/pages/solutions/solution'

const routes = [
  {
    path: "/",
    element: <LayOut />,
    children: [
      {
        // index: true，设置为默认路由
        index: true,
        name: '首页',
        element: <Home />,
      },
      // 产品中心
      {
        path: "/ad-formats",
        name: '广告样式',
        element: <AdFormats />,
      },
      {
        path: "/gromore",
        name: 'GroMore',
        element: <GroMore />,
      },
      {
        path: "/growth-adviser",
        name: '增长参谋',
        element: <GrowthAdviser />,
      },
      {
        path: "/intelligent-layering",
        name: '智能分层',
        element: <IntelligentLayering />,
      },
      // 解决方案
      {
        path: "/solution",
        name: '行业变现解决方案',
        element: <Solution />,
      },
      {
        path: "*",
        element: <NotFound />,
      },
    ]
  }
];

export default routes;